﻿namespace HCRS.Implementation
{
    using System;

    /// <summary>
    /// IP位置地理地址获取
    /// </summary>
    public class IPAddress
    {
        private string _address = "未知";
        private string _city = "未知";
        private string _country = "未知";
        private string _ip = "无法获取";

        /// <summary>
        /// 地址-- 国家+城市
        /// </summary>
        public string Address
        {
            get
            {
                return this._address;
            }
            set
            {
                if (this._address != value)
                {
                    this._address = value;
                }
            }
        }

        /// <summary>
        /// 城市
        /// </summary>
        public string City
        {
            get
            {
                return this._city;
            }
            set
            {
                if (this._city != value)
                {
                    this._city = value;
                }
            }
        }

        /// <summary>
        /// 国家
        /// </summary>
        public string Country
        {
            get
            {
                return this._country;
            }
            set
            {
                if (this._country != value)
                {
                    this._country = value;
                }
            }
        }

        /// <summary>
        /// IP地址
        /// </summary>
        public string IP
        {
            get
            {
                return this._ip;
            }
            set
            {
                if (this._ip != value)
                {
                    this._ip = value;
                }
            }
        }
    }
}

